<!-- Phan khai bao bien cuc bo-->
<?php
	$v_record_id = "";
	if(isset($_REQUEST['hdn_record_id'])){
		$v_record_id = $_REQUEST['hdn_record_id'];
	}
	if ($v_worktype=="CHECK"){
		$v_fuseaction = "DISPLAY_SINGLE_NET_RECORD_FOR_VIEW";		
	}else{
		$v_fuseaction = "DISPLAY_SINGLE_CUSTOMER_RECORD";
	}
?>
<!--bang chua tieu de cua form-->
<table width="100%" cellpadding="0" cellspacing="0">
	<tr class="large_title">
		<td><?php 
			if ($v_worktype!="CHECK"){	
				echo CONST_REGISTOR_IDENTITY_STEP1_TITLE;
			}else{
				echo "Ki&#7875;m tra th&#244;ng tin ng&#432;&#7901;i &#273;&#259;ng k&#253;";	}?>
			</td>
	</tr>
</table>
<!-- Bat cac phim: F12=true; Insert=false; Delete=false, ESC=true; Enter=true -->
<div id="hotkey" onKeyDown="javascript:process_hot_key(true,false,false,true,true);">
<!--bang chua cac text box de nhap du lieu-->
<table width="100%" class="form_table1" border="0" cellpadding="0" cellspacing="0">
	<col width="15%"><col width="35%"><col width="20%"><col width="30%">
	<tr>
		<form action="index.php" method="post" name="f_dsp_single_customer_identity">
		<input type="hidden" name="fuseaction" value="">
		<input type="hidden" name="hdn_worktype" value="<?php echo $v_worktype;?>">
		<input type="hidden" name="hdn_record_id" value="<?php echo $v_record_id;?>">
		<input type="hidden" name="hdn_customer_name" value="">
		<input type="hidden" name="hdn_customer_card_id" value="">
		<input type="hidden" name="hdn_recordtype_filter" value="<?php echo $v_recordtype_filter; ?>">		
	</tr>
	<tr style="display:none">
		<td class="normal_label" colspan="4"><?php echo CONST_REGISTOR_IDENTITY_GUIDE_LABEL; ?></td>
	</tr>
	<tr style="display:none">
		<td class="normal_label" colspan="4"><?php echo CONST_REGISTOR_NAME_IDENTITY_GUIDE_LABEL; ?></td>
	</tr>
	<tr style="display:none">
		<td class="normal_label" colspan="4"><?php echo CONST_REGISTOR_CARD_ID_IDENTITY_GUIDE_LABEL; ?></td>
	</tr>
	<tr style="display:none">
		<td class="normal_label" colspan="4"><?php echo CONST_REGISTER_IDENTITY_GUIDE_LABEL; ?></td>
	</tr>
	<tr style="display:none">
		<td colspan="4"><hr color="#66CCFF" width="100%" size="1"></td>
	</tr>
	<tr style="display:none">
		<td align="left" class="normal_label"><?php echo CONST_REGISTOR_NAME_IDENTITY_LABEL;?><small class="normal_starmark">*</small>&nbsp;&nbsp;</td>
		<td colspan="3">
			<input type="text" name="txt_customer_name" class="normal_textbox" style="width:100%" optional="<?php echo CONST_REGISTOR_NAME_IDENTITY_OPTIONAL; ?>" message = "<?php echo CONST_REGISTOR_NAME_IDENTITY_MESSAGE; ?>" value="" onKeyDown="change_focus(document.forms(0),this);">			
		</td>		
	</tr>
	<tr style="display:none">
		<td align="left" class="normal_label"><?php echo CONST_REGISTOR_CARD_ID_IDENTITY_LABEL;?><small class="normal_starmark">*</small>&nbsp;&nbsp;</td>
		<td colspan="3">
			<input type="text" name="txt_customer_card_id" class="normal_textbox" style="width:50%" optional="<?php echo CONST_REGISTOR_CARD_ID_IDENTITY_OPTIONAL; ?>" message = "<?php echo CONST_REGISTOR_CARD_ID_IDENTITY_MESSAGE; ?>" maxlength = "<?php echo CONST_REGISTOR_CARD_ID_IDENTITY_MAXLENGTH; ?>" isnumeric = "<?php echo CONST_REGISTOR_CARD_ID_IDENTITY_ISNUMERIC; ?>" value="" onKeyDown="change_focus(document.forms(0),this);">			
		</td>		
	</tr><?php 
	if ($v_worktype!="CHECK"){?>
		<tr>
			<td align="left" class="normal_label"><?php echo CONST_RECORDTYPE_CHOOSE_LABEL;?><small class="normal_starmark">*</small>&nbsp;&nbsp;</td>
			<td colspan="3">
				<select class='normal_selectbox' name='sel_recordtype' message='<?php echo CONST_RECORDTYPE_OPTION_OPTIONAL;?>' style='width:100%' onChange="document.forms(0).hdn_recordtype_filter.value=this.value;">";
					<option id="" value="">--<?php echo CONST_RECORDTYPE_OPTION_LABEL;?>--</option>
					<?php echo _generate_select_option($arr_all_recordtype,'0','0','1', $v_recordtype_filter);?>
				</select>
			</td>		
		</tr><?php
	}?>
	<tr><td>&nbsp;</td></tr>
</table>
<!--bang chua cac button-->
<table width="100%" cellpadding="0" cellspacing="0">
	<tr><td>&nbsp;</td></tr>
	<tr>
		<td align="center">
			<input type="button" name="btn_save"  class="normal_button" value="<?php echo CONST_CONTINUOUS_BUTTON;?>"  style="width:100px"  onClick="btn_signon_onclick('REGISTER',document.forms(0).txt_customer_name.value,document.forms(0).txt_customer_card_id.value);btn_save_onclick('<?php echo $v_fuseaction ?>');" onKeyDown="change_focus(document.forms(0),this)">
			<input type="button" name="btn_back"  class="normal_button" value="<?php echo _CONST_BACK_BUTTON;?>"  style="width:100px"  onClick="window.location='<?php echo _CONST_HOMEPAGE_URL_PATH;?>'" onKeyDown="change_focus(document.forms(0),this)">
			<!--input type="button" name="btn_save"  class="normal_button" value="<?php echo CONST_REGISTER_VIEW_BUTTON;?>" style="width:150px" onClick="btn_signon_onclick('VIEW',document.forms(0).txt_customer_name.value,document.forms(0).txt_customer_card_id.value);btn_save_onclick('DISPLAY_SINGLE_RECORDTYPE_IDENTITY');" onKeyDown="change_focus(document.forms(0),this)"-->
		</td>
	</tr>
</table>					
</div>
</form>
<script language="JavaScript">
	set_focus(document.forms(0));
</script>
